package com.xx.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import java.time.LocalDateTime;
import java.util.Date;
import java.util.List;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 * 
 * </p>
 *
 * @author myx
 * @since 2025-01-12
 */
@Data
@TableName("dish")
@Schema(name = "Dish", description = "")
public class Dish {

    @TableField("id")
    private Integer id;

    @Schema(description = "菜名")
    @TableField("dishName")
    private String dishName;

    @Schema(description = "价格")
    @TableField("price")
    private Double price;

    @Schema(description = "描述")
    @TableField("description")
    private String description;

    @Schema(description = "图片")
    @TableField("imageUrl")
    private String imageUrl;

    @Schema(description = "状态 0:售罄，1:在售")
    @TableField("status")
    private Integer status;

    @Schema(description = "创建时间")
    @TableField("createdAt")
    private LocalDateTime createdAt;

    @Schema(description = "更新时间")
    @TableField("updatedAt")
    private LocalDateTime updatedAt;

    private Integer category_id;

    private Category categoryList;
}
